don't forget to set the time in the returned GdkTimeCoords.
authorMichael Natterer <mitch@imendio.com>
Fri, 4 Jan 2008 16:21:42 +0000 (16:21 +0000)
committerMichael Natterer <mitch@src.gnome.org>
Fri, 4 Jan 2008 16:21:42 +0000 (16:21 +0000)
2008-01-04  Michael Natterer  <mitch@imendio.com>

* gdk/x11/gdkinput-x11.c (_gdk_device_get_history): don't forget
to set the time in the returned GdkTimeCoords.

svn path=/trunk/; revision=19304

ChangeLog
gdk/x11/gdkinput-x11.c

index af7f2c491540bef36a377497118b4a5221ef1d9e..64b0522833b1792a8ee6f9536d85a2f70034b1e3 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2008-01-04  Michael Natterer  <mitch@imendio.com>
+
+       * gdk/x11/gdkinput-x11.c (_gdk_device_get_history): don't forget
+       to set the time in the returned GdkTimeCoords.
+
 2008-01-03  Emmanuele Bassi  <ebassi@gnome.org>
 
        * gtk/gtkfilechooserdefault.c (recent_sort_mru): Use the
index 46600e416d65224aba88692329cd298581e356f0..7a2d30be1518b95e27135fd26ea0b4b1fbdbf0ed 100644 (file)
@@ -754,11 +754,16 @@ _gdk_device_get_history (GdkDevice         *device,
   if (device_coords)
     {
       coords = _gdk_device_allocate_history (device, *n_events);
-      
-      for (i=0; i<*n_events; i++)
-       gdk_input_translate_coordinates (gdkdev, input_window,
-                                        device_coords[i].data,
-                                        coords[i]->axes, NULL, NULL);
+
+      for (i = 0; i < *n_events; i++)
+        {
+          coords[i]->time = device_coords[i].time;
+
+          gdk_input_translate_coordinates (gdkdev, input_window,
+                                           device_coords[i].data,
+                                           coords[i]->axes, NULL, NULL);
+        }
+
       XFreeDeviceMotionEvents (device_coords);
 
       *events = coords;